<template>
    <div id="basicLayout">
      <a-layout style="min-height: 100vh">
        <a-layout-header class="header">
            <GlobalHeader/>
        </a-layout-header>
        <a-layout-content class="content">
            <RouterView></RouterView>
        </a-layout-content>
        <a-layout-footer class="footer">
            <a href="https://github.com/vueComponent/ant-design-vue" target="_blank" style="font-size: 16px;color: #999;">
                copyright © {{date}}-present hlw
                </a>
        </a-layout-footer>
      </a-layout>
    </div>
  </template>

<script setup>
import GlobalHeader from '@/components/GlobalHeader.vue';

const date = new Date().getFullYear()
</script>

<style scoped>
#basicLayout .footer {
    text-align: center;
    background-color: #f5f5f5;
    left: 0;
    right: 0;
    bottom: 0;
    position:fixed;
    padding: 16px;
}

#basicLayout .content {
  background: linear-gradient(to right, #fefefe, #fff);
  margin-bottom: 28px;
  padding: 20px;
}
#basicLayout .header {
  margin-bottom: 16px;
  box-shadow: #eee 1px 1px 5px;
}

</style>